package ch5.ext;

public class PetTest {

	public static void main(String[] args) {
		Dog d = new Dog("大黄", 60, 60, "狼狗");
		System.out.println(d);
		System.out.println("************************");
		d.printInfo();

		d.shout();
		d.run();
		System.out.println(">>>>>>>>>>>>>>>>>");
		GoldFish g = new GoldFish("小红", 99, 99, "金龙鱼");
		g.printInfo();

		g.shout();
		g.run();

		String str = g.toString();
		System.out.println(str);
		System.out.println(g);
	}

}
